﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="AddCategory.ascx.cs" Inherits="admin_Category_AddCategory" %>
<%@ Register Assembly="GroupDropDownList" Namespace="GroupDropDownList" TagPrefix="cc1" %>


<asp:CustomValidator ID="CustomValidator1" runat="server" ErrorMessage="CustomValidator" Display="None"></asp:CustomValidator>
<asp:HiddenField runat="server" ID = "hidCatType" />
<asp:HiddenField runat="server" ID = "hidCatId" />
<h2><asp:Label runat="server" ID = "lblTitle" ></asp:Label></h2>
<table>
    <tr>
        <td>Danh mục cha:</td>
        <td>
            <%--<asp:DropDownList ID="ddlParent" runat="server" Width="200px" AppendDataBoundItems="true">
                <asp:ListItem Selected="True" Value="00000000-0000-0000-0000-000000000000">--Không chọn--</asp:ListItem>
              
            </asp:DropDownList>--%>
            
            <cc1:GroupDropDownList ID="ddlParent" runat="server" Width="200px" AppendDataBoundItems="true">
                <asp:ListItem Selected="True" Value="00000000-0000-0000-0000-000000000000">--Không chọn--</asp:ListItem>
            </cc1:GroupDropDownList>
            
        </td>
    </tr>
    <tr>
        <td>Tên danh mục:</td>
        <td><asp:TextBox runat="server" ID = "txtCatName" Width="200px"></asp:TextBox></td>
    </tr>
    <tr>
        <td colspan="2" >
            <asp:Button runat="server" ID = "btnUpdate" Text = "Cập nhật" 
                onclick="btnUpdate_Click" />
            <asp:Button runat="server" ID = "btnAdd" Text = "Thêm mới" 
                onclick="btnAdd_Click" />
            <asp:Button runat="server" ID = "btnList"  Text = "Trở về" 
                onclick="btnList_Click" />
        </td>
    </tr>
</table>
